<template>
  <section v-if="trackType && trackType != 'null'">
    <icon-svg v-if="deviceCode && deviceCode != 'undefined'"
              class-name="iconClass"
              :icon-name="trackType == 2 ? 'kuaididanhao' : 'dianzihuidan'" />
    <br />
    <div>{{ deviceCode && deviceCode != "undefined" ? deviceCode : "--" }}</div>
  </section>
  <section v-else>--</section>
</template>

<script>
export default {
  name: "Tracking",
  data () {
    return {};
  },
  props: {
    trackType: {
      type: [String, Number]
    },
    deviceCode: {
      type: String
    }
  }
};
</script>
<style scoped>
.iconClass {
  width: 16px;
  height: 16px;
  /* font-size: 16px; */
}
</style>
